<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/17
 * Time: 20:58
 */

namespace app\common\exception;
use Exception;
use think\exception\Handle;
use think\exception\HttpException;

class MyException extends Handle
{
    public function render(Exception $e)
    {
        //TODO::开发者对异常的操作

        \app\common\model\Log::record('[MSG:] '.$e->getMessage().' | [TRACE:] '.$e->getTraceAsString(),'EXCEPTION');

        //可以在此交由系统处理
        return parent::render($e);
    }
}